﻿
namespace Indeco.G24.Windows.Forms
{
	/// <summary>
	/// abstract NhaSanXuat typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class NhaSanXuatDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<NhaSanXuatDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.NhaSanXuat _currentNhaSanXuat = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxNhaSanXuatDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxNhaSanXuatErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxNhaSanXuatBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the IDNhaSanXuat property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDNhaSanXuatDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Ten property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxTenDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the TenVietTat property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxTenVietTatDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the MoTa property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxMoTaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the TrangThai property
		/// </summary>
		protected System.Windows.Forms.DataGridViewCheckBoxColumn uxTrangThaiDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the HinhMinhHoa property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxHinhMinhHoaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ThoiDiemChinhSua property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxThoiDiemChinhSuaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ThoiDiemCapNhat property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxThoiDiemCapNhatDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.NhaSanXuat> _NhaSanXuatList;
				
		/// <summary> 
		/// The list of NhaSanXuat to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.NhaSanXuat> NhaSanXuatList
		{
			get {return this._NhaSanXuatList;}
			set
			{
				this._NhaSanXuatList = value;
				this.uxNhaSanXuatBindingSource.DataSource = null;
				this.uxNhaSanXuatBindingSource.DataSource = value;
				this.uxNhaSanXuatDataGridView.DataSource = null;
				this.uxNhaSanXuatDataGridView.DataSource = this.uxNhaSanXuatBindingSource;				
				//this.uxNhaSanXuatBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxNhaSanXuatBindingSource_ListChanged);
				this.uxNhaSanXuatBindingSource.CurrentItemChanged += new System.EventHandler(OnNhaSanXuatBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnNhaSanXuatBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentNhaSanXuat = uxNhaSanXuatBindingSource.Current as Entities.NhaSanXuat;
			
			if (_currentNhaSanXuat != null)
			{
				_currentNhaSanXuat.Validate();
			}
			//_NhaSanXuat.Validate();
			OnCurrentEntityChanged();
		}

		//void uxNhaSanXuatBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.NhaSanXuat"/> instance.
		/// </summary>
		public Entities.NhaSanXuat SelectedNhaSanXuat
		{
			get {return this._currentNhaSanXuat;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxNhaSanXuatDataGridView.VirtualMode;}
			set
			{
				this.uxNhaSanXuatDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxNhaSanXuatDataGridView.AllowUserToAddRows;}
			set {this.uxNhaSanXuatDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxNhaSanXuatDataGridView.AllowUserToDeleteRows;}
			set {this.uxNhaSanXuatDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxNhaSanXuatDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxNhaSanXuatDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="NhaSanXuatDataGridViewBase"/> class.
		/// </summary>
		public NhaSanXuatDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxNhaSanXuatDataGridView = new System.Windows.Forms.DataGridView();
			this.uxNhaSanXuatBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxNhaSanXuatErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIDNhaSanXuatDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxTenDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxTenVietTatDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxMoTaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxTrangThaiDataGridViewColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
			this.uxHinhMinhHoaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxThoiDiemChinhSuaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxThoiDiemCapNhatDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxNhaSanXuatErrorProvider
			// 
			this.uxNhaSanXuatErrorProvider.ContainerControl = this;
			this.uxNhaSanXuatErrorProvider.DataSource = this.uxNhaSanXuatBindingSource;						
			// 
			// uxNhaSanXuatDataGridView
			// 
			this.uxNhaSanXuatDataGridView.AutoGenerateColumns = false;
			this.uxNhaSanXuatDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxNhaSanXuatDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIDNhaSanXuatDataGridViewColumn,
		this.uxTenDataGridViewColumn,
		this.uxTenVietTatDataGridViewColumn,
		this.uxMoTaDataGridViewColumn,
		this.uxTrangThaiDataGridViewColumn,
		this.uxHinhMinhHoaDataGridViewColumn,
		this.uxThoiDiemChinhSuaDataGridViewColumn,
		this.uxThoiDiemCapNhatDataGridViewColumn			});
			this.uxNhaSanXuatDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxNhaSanXuatDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxNhaSanXuatDataGridView.Name = "uxNhaSanXuatDataGridView";
			this.uxNhaSanXuatDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxNhaSanXuatDataGridView.TabIndex = 0;	
			this.uxNhaSanXuatDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxNhaSanXuatDataGridView.EnableHeadersVisualStyles = false;
			this.uxNhaSanXuatDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnNhaSanXuatDataGridViewDataError);
			this.uxNhaSanXuatDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnNhaSanXuatDataGridViewCellValueNeeded);
			this.uxNhaSanXuatDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnNhaSanXuatDataGridViewCellValuePushed);
			
			//
			// uxIDNhaSanXuatDataGridViewColumn
			//
			this.uxIDNhaSanXuatDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDNhaSanXuatDataGridViewColumn.DataPropertyName = "IDNhaSanXuat";
			this.uxIDNhaSanXuatDataGridViewColumn.HeaderText = "IDNhaSanXuat";
			this.uxIDNhaSanXuatDataGridViewColumn.Name = "uxIDNhaSanXuatDataGridViewColumn";
			this.uxIDNhaSanXuatDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDNhaSanXuatDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDNhaSanXuatDataGridViewColumn.ReadOnly = false;		
			//
			// uxTenDataGridViewColumn
			//
			this.uxTenDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxTenDataGridViewColumn.DataPropertyName = "Ten";
			this.uxTenDataGridViewColumn.HeaderText = "Ten";
			this.uxTenDataGridViewColumn.Name = "uxTenDataGridViewColumn";
			this.uxTenDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxTenDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxTenDataGridViewColumn.ReadOnly = false;		
			//
			// uxTenVietTatDataGridViewColumn
			//
			this.uxTenVietTatDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxTenVietTatDataGridViewColumn.DataPropertyName = "TenVietTat";
			this.uxTenVietTatDataGridViewColumn.HeaderText = "TenVietTat";
			this.uxTenVietTatDataGridViewColumn.Name = "uxTenVietTatDataGridViewColumn";
			this.uxTenVietTatDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxTenVietTatDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxTenVietTatDataGridViewColumn.ReadOnly = false;		
			//
			// uxMoTaDataGridViewColumn
			//
			this.uxMoTaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxMoTaDataGridViewColumn.DataPropertyName = "MoTa";
			this.uxMoTaDataGridViewColumn.HeaderText = "MoTa";
			this.uxMoTaDataGridViewColumn.Name = "uxMoTaDataGridViewColumn";
			this.uxMoTaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxMoTaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxMoTaDataGridViewColumn.ReadOnly = false;		
			//
			// uxTrangThaiDataGridViewColumn
			//
			this.uxTrangThaiDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxTrangThaiDataGridViewColumn.DataPropertyName = "TrangThai";
			this.uxTrangThaiDataGridViewColumn.HeaderText = "TrangThai";
			this.uxTrangThaiDataGridViewColumn.Name = "uxTrangThaiDataGridViewColumn";
			this.uxTrangThaiDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxTrangThaiDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxTrangThaiDataGridViewColumn.ReadOnly = false;		
			//
			// uxHinhMinhHoaDataGridViewColumn
			//
			this.uxHinhMinhHoaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxHinhMinhHoaDataGridViewColumn.DataPropertyName = "HinhMinhHoa";
			this.uxHinhMinhHoaDataGridViewColumn.HeaderText = "HinhMinhHoa";
			this.uxHinhMinhHoaDataGridViewColumn.Name = "uxHinhMinhHoaDataGridViewColumn";
			this.uxHinhMinhHoaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxHinhMinhHoaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxHinhMinhHoaDataGridViewColumn.ReadOnly = false;		
			//
			// uxThoiDiemChinhSuaDataGridViewColumn
			//
			this.uxThoiDiemChinhSuaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxThoiDiemChinhSuaDataGridViewColumn.DataPropertyName = "ThoiDiemChinhSua";
			this.uxThoiDiemChinhSuaDataGridViewColumn.HeaderText = "ThoiDiemChinhSua";
			this.uxThoiDiemChinhSuaDataGridViewColumn.Name = "uxThoiDiemChinhSuaDataGridViewColumn";
			this.uxThoiDiemChinhSuaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxThoiDiemChinhSuaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxThoiDiemChinhSuaDataGridViewColumn.ReadOnly = false;		
			//
			// uxThoiDiemCapNhatDataGridViewColumn
			//
			this.uxThoiDiemCapNhatDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxThoiDiemCapNhatDataGridViewColumn.DataPropertyName = "ThoiDiemCapNhat";
			this.uxThoiDiemCapNhatDataGridViewColumn.HeaderText = "ThoiDiemCapNhat";
			this.uxThoiDiemCapNhatDataGridViewColumn.Name = "uxThoiDiemCapNhatDataGridViewColumn";
			this.uxThoiDiemCapNhatDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxThoiDiemCapNhatDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxThoiDiemCapNhatDataGridViewColumn.ReadOnly = false;		
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxNhaSanXuatDataGridView);
			this.Name = "NhaSanXuatDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaSanXuatBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				NhaSanXuatDataGridViewEventArgs args = new NhaSanXuatDataGridViewEventArgs();
				args.NhaSanXuat = _currentNhaSanXuat;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class NhaSanXuatDataGridViewEventArgs : System.EventArgs
		{
			private Entities.NhaSanXuat	_NhaSanXuat;
	
			/// <summary>
			/// the  Entities.NhaSanXuat instance.
			/// </summary>
			public Entities.NhaSanXuat NhaSanXuat
			{
				get { return _NhaSanXuat; }
				set { _NhaSanXuat = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxNhaSanXuatDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnNhaSanXuatDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxNhaSanXuatDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnNhaSanXuatDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxNhaSanXuatDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDNhaSanXuatDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].IDNhaSanXuat;
						break;
					case "uxTenDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].Ten;
						break;
					case "uxTenVietTatDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].TenVietTat;
						break;
					case "uxMoTaDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].MoTa;
						break;
					case "uxTrangThaiDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].TrangThai;
						break;
					case "uxHinhMinhHoaDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].HinhMinhHoa;
						break;
					case "uxThoiDiemChinhSuaDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].ThoiDiemChinhSua;
						break;
					case "uxThoiDiemCapNhatDataGridViewColumn":
						e.Value = NhaSanXuatList[e.RowIndex].ThoiDiemCapNhat;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxNhaSanXuatDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnNhaSanXuatDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxNhaSanXuatDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDNhaSanXuatDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].IDNhaSanXuat = (System.Guid)e.Value;
						break;
					case "uxTenDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].Ten = (System.String)e.Value;
						break;
					case "uxTenVietTatDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].TenVietTat = (System.String)e.Value;
						break;
					case "uxMoTaDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].MoTa = (System.String)e.Value;
						break;
					case "uxTrangThaiDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].TrangThai = (System.Boolean)e.Value;
						break;
					case "uxHinhMinhHoaDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].HinhMinhHoa = (System.String)e.Value;
						break;
					case "uxThoiDiemChinhSuaDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].ThoiDiemChinhSua = (System.DateTime)e.Value;
						break;
					case "uxThoiDiemCapNhatDataGridViewColumn":
						NhaSanXuatList[e.RowIndex].ThoiDiemCapNhat = (System.DateTime)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
